import { post, get, deletes, put } from '@/service/axios'



// 获取权限列表
export const getRightList = params => get(`rights/${params.type}`, params)



// 删除角色指定权限
export const deleteRoleRight = params => deletes(`roles/${params.roleId}/rights/${params.rightId}`)



// 授权


// 角色授权
export const grantRoleRight = (params) => post(`roles/${params.roleId}/rights`, params)





